## rsyslog-plugin for streaming telemetry via gnmi



template(name="prog_msg" type="list") {
    property(name="msg")
    constant(value="\n")
}

{% for proc in proclist %}
if re_match($programname, "{{ proc.name }}") then {
    action(type="omprog"
        binary="/usr/bin/rsyslog_plugin -r /etc/rsyslog.d/{{ proc.parse_json }} -m {{ yang_module }}"
        output="/var/log/rsyslog_plugin.log"
        signalOnClose="on"
        template="prog_msg")
}
{% endfor %}
